﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JBeamLibrary.Tools
{
    public static class IEnumerableExtension
    {
        public static List<T> ToSafeList<T>(this IEnumerable<T> list)
        {
            return list == null ? new List<T>() : list.ToList();
        }
    }
}
